import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import baomubaojie from '../views/jiaju/baomubaojie.vue'
import register from '../views/UserRegister.vue'
import login from '../views/login.vue'

const routes = [
  {
    path: '/',
    name: 'login',
    component: login
  },
  {
    path: '/register',
    component: register
  },
  {
    path: '/login',
    component: login
  },
  {
    path: '/home',
    component: () =>import(`../views/HomeView.vue`)
  },
  {
    path: '/login',
    component: () =>import(`../views/login.vue`)
  },
  {
    path: '/allfunctions',
    component: () =>import(`../views/allfunctions.vue`)
  },
  {
    path: '/shouye',
    component: () =>import(`../views/HomeView.vue`)
  },
  {
    path: '/all_Top',
    component: () =>import(`../components/allfunction/all_Top.vue`)
  },
  {
    path: '/xiaoxizhanshi',
    component: () =>import(`../components/shouye/xiaoxi/xiaoxizhanshi.vue`)
  },
  {
    path: '/xiaoxizhanshi1',
    component: () =>import(`../components/shouye/xiaoxi/xiaoxizhanshi1.vue`)
  },
  {
    path: '/xiaoxizhanshi2',
    component: () =>import(`../components/shouye/xiaoxi/xiaoxizhanshi2.vue`)
  },
  {
    path: '/my',
    component: () =>import(`../views/my.vue`)
  },
  //功能的跳转
  {
    path: '/baomubaojie',
    component: () =>import(`../views/jiaju/baomubaojie.vue`)
  },
  {
    path: '/everyday',
    component: () =>import(`../components/jiajv/everydaybaojie.vue`)
  },
  {
    path: '/dingdan',
    component: () =>import(`../components/jiajv/dingdan.vue`)
  },
  {
    path: '/wo',
    component: () =>import(`../components/jiajv/wo.vue`)
  },
  {
    path: '/baomu',
    component: () =>import(`../components/jiajv/baomu.vue`)
  },
  {
    path: '/care',
    component: () =>import(`../components/jiajv/nanny.vue`)
  },
  {
    path: '/waimaidiaoshang',
    component: () =>import(`../views/jiaju/waimai.vue`)
  },
 
  {
    path: '/PaymentOnline',
    component: () =>import(`../views/wuye/PaymentOnline.vue`)
  },
  {
    path: '/baoshibaoxiu',
    component: () =>import(`../views/wuye/baoshibaoxiu.vue`)
  },
  {
    path: '/zhinengmenjin',
    component: () =>import(`../views/wuye/zhinengmenjin.vue`)
  },
  
   //社区公共服务
     {
   path: '/baoming',
     component: () =>import(`../views/shequ/baoming.vue`)
     },
     {
      path: '/shequgonggongfuwu',
        component: () =>import(`../views/shequ/shequgonggongfuwu.vue`)
        },
        {
          path: '/jiaoyukecheng',
            component: () =>import(`../views/shequ/jiaoyukecheng.vue`)
            },
            {
              path: '/gerenxinxi',
                component: () =>import(`../views/shequ/gerenxinxi.vue`)
                },
                {
                  path: '/linglihuzhu',
                    component: () =>import(`../views/shequ/linglihuzhu.vue`)
                    },
       
     {
      path: '/bianming',
        component: () =>import(`../views/bianming.vue`)
      },
      {
        path: '/jiaona',
          component: () =>import(`../views/wuye/jiaona/jiaona.vue`)
        },
      {
        path: '/jiaona2',
          component: () =>import(`../views/wuye/jiaona/jiaona2.vue`)
        },
      {
        path: '/jiaona3',
          component: () =>import(`../views/wuye/jiaona/jiaona3.vue`)
        },
      {
        path: '/jiaona4',
          component: () =>import(`../views/wuye/jiaona/jiaona4.vue`)
        },
      {
        path: '/jiaona5',
          component: () =>import(`../views/wuye/jiaona/jiaona5.vue`)
        },
      {
        path: '/jiaona6',
          component: () =>import(`../views/wuye/jiaona/jiaona6.vue`)
        },
      {
        path: '/jiaona7',
          component: () =>import(`../views/wuye/jiaona/jiaona7.vue`)
        },
      {
        path: '/fanchan',
            component: () =>import(`../views/fanchan.vue`)
        },
		{
			path: '/guanmen',
			component: () =>import(`../views/wuye/guanmen.vue`)
			
		},
		{
			path: '/waimai_order',
			component: () =>import(`../views/jiaju/waimai_order.vue`)
			
		},
		{
			path: '/baihuo',
			component: () =>import(`../components/jiajv/waimai/dianshangVue/baihuo.vue`)
			
		},
		{
			path: '/waimai_huoguo',
			component: () =>import(`../components/jiajv/waimai/waimaiVue/huoguo.vue`)
			
		},
		{
			path: '/waimai_drinking',
			component: () =>import(`../components/jiajv/waimai/waimaiVue/drinking.vue`)
			
		},
		{
			path: '/waimai_dianshnag',
			component: () =>import(`../components/jiajv/waimai/dianshangVue/baihuo.vue`)
			
		},
		{
			path: '/waimai_kaochuan',
			component: () =>import(`../components/jiajv/waimai/waimaiVue/shaokao.vue`)
			
		},
		{
			path: '/dianpu1',
			component: () =>import(`../components/jiajv/waimai/dianpu1.vue`)
			
		},
		{
			path: '/shuiguo',
			component: () =>import(`../components/jiajv/waimai/dianshangVue/shuiguo.vue`)
			
		},
		{
			path: '/remai',
			component: () =>import(`../components/jiajv/waimai/dianshangVue/shuiguo.vue`)
			
		},
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
